package com.xwb.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xwb.mapper.UserMapper;
import com.xwb.pojo.User;

@Controller
public class UserController {
	@Autowired
	private UserMapper userMapper;
	
	@RequestMapping("/userlist")
	@ResponseBody
	public List<User> queryUserList() {
		List<User> user = userMapper.queryUserList();
		return user;
		
	}
	
}
